package cn.getech.data.development.constant;

import lombok.Getter;
/**
 * @description: 数据权限类型
 * @author: wangzhaowen：kiss
 * @create: 2020/7/30 15:36
 * @version: 2020/7/30
 **/
@Getter
public enum PermissionTypeEnum {


    RESOURCE(1,"数据源权限"),
    STORE(2,"数据仓库权限"),
    STORE_FILED(3,"数据仓库字段权限"),
    DATA_SERVICE(4,"数据服务权限"),
    METADATA_MANAGEMENT(5,"元数据表权限"),
    METADATA_MANAGEMENT_FIELD(8,"元数据字段权限"),
    REAL_TABLE(6,"实时表权限"),

    REAL_TABLE_FILED(7,"实时表字段权限"),


    QUERY(10,"查询"),
    CREATE(11,"创建"),
    UPDATE(12,"修改"),
    DELETE(13,"删除"),
    ASSIGN(14,"授权"),
    EXPORT(15,"导出"),
    DECRYPT(16,"加密"),//权限申请逻辑中，用来标识拥有某些字段权限
    WRITE(17,"写入"),

    ;
    private Integer type;
    private  String desc;

    PermissionTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }
}
